class Rectangle { int width, height; Rectangle(int width, int height) { this.width = width; this.height = height; } int area() { return width * height; } public static void main(String[] args) { Rectangle rect = new Rectangle(5, 10); System.out.println("Area: " + rect.area()); } }